package com.tdkj.action.backstage.risevalue;

import java.util.List;

import javax.annotation.Resource;

import com.tdkj.action.BaseAction;
import com.tdkj.model.risevalue.BeanPlateSMSSubscription;
import com.tdkj.service.risevalue.IBeanPlateSMSSubscriptionService;


public class PlateSMSSubscriptionAction extends BaseAction {
    
	private IBeanPlateSMSSubscriptionService plateSMSSubscriptionService;
	
	private Long id;
	
	private List<BeanPlateSMSSubscription> subscriptions ;
	
	private BeanPlateSMSSubscription subscription ;
	
	private String message;
	
	public String execute() {
		subscriptions = plateSMSSubscriptionService.findAll(BeanPlateSMSSubscription.class);
		return "success";
	}
	
	public String getById() {
		subscription = plateSMSSubscriptionService.findById(id, BeanPlateSMSSubscription.class);
		return "getById";
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the subscriptions
	 */
	public List<BeanPlateSMSSubscription> getSubscriptions() {
		return subscriptions;
	}

	/**
	 * @param subscriptions the subscriptions to set
	 */
	public void setSubscriptions(List<BeanPlateSMSSubscription> subscriptions) {
		this.subscriptions = subscriptions;
	}

	/**
	 * @return the subscription
	 */
	public BeanPlateSMSSubscription getSubscription() {
		return subscription;
	}

	/**
	 * @param subscription the subscription to set
	 */
	public void setSubscription(BeanPlateSMSSubscription subscription) {
		this.subscription = subscription;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Resource
	public void setPlateSMSSubscriptionService(
			IBeanPlateSMSSubscriptionService plateSMSSubscriptionService) {
		this.plateSMSSubscriptionService = plateSMSSubscriptionService;
	}
	
	
}
